home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr10 / rmast40.zip / DEMO2.C < prev    next >
C/C++ Source or Header  |  1994-01-12  |  2KB  |  48 lines

  1. /* ************************************************************ */
  2. /* Demo2.c For Turbo C                                          */
  3. /*                                                              */
  4. /* Rcar was created by saving the image as a TC Constant        */
  5. /* from Raster Master.                                          */
  6. /* ************************************************************ */
  7. #include <stdio.h>
  8. #include <graphics.h>
  9.  
  10. void main()
  11. {
  12.   int driver = VGA;
  13.   int mode   = VGALO;
  14.  
  15. /* Turbo C, Width= 28 Height= 16 Colors= 16 */
  16.  
  17. char Rcar[262] = {
  18.           0x1B,0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x00,
  19.           0x00,0x00,0x00,0x00,0xFF,0xC3,0xFF,0xFF,0x00,0x3F,0x00,0x00,
  20.           0x00,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x80,0xFF,0xFF,
  21.           0x00,0x40,0x00,0x00,0x60,0xC1,0x80,0x00,0x00,0x01,0x80,0x00,
  22.           0x9F,0x01,0xFF,0xFF,0x00,0x80,0x00,0x00,0x71,0x80,0xC0,0x00,
  23.           0x00,0x00,0xC0,0x00,0x8E,0x00,0xFF,0xFF,0x01,0x00,0x00,0x00,
  24.           0x1B,0x80,0x60,0x00,0x00,0x00,0x60,0x00,0xE4,0x00,0x7F,0xFF,
  25.           0x01,0x80,0x00,0x00,0x1F,0xC0,0x30,0x00,0x00,0x00,0x30,0x00,
  26.           0xE0,0x00,0x3F,0xFF,0x1C,0x00,0x00,0x00,0x3F,0xFF,0xFF,0x00,
  27.           0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0xFF,0x3F,0x8F,0xEF,0x00,
  28.           0x7F,0xFF,0xFF,0xC0,0x00,0x10,0x00,0x00,0x80,0x10,0x00,0x3F,
  29.           0x71,0xDF,0xF0,0x80,0xFF,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x40,
  30.           0x00,0x00,0x00,0x5F,0x60,0xDF,0xF0,0x00,0xF1,0xFF,0xF8,0xF0,
  31.           0x80,0x00,0x00,0x60,0x80,0x00,0x00,0x6F,0x40,0x5F,0xE0,0x00,
  32.           0xE0,0xFF,0xF0,0x70,0x80,0x00,0x00,0x20,0x80,0x00,0x00,0x2F,
  33.           0x04,0x1F,0xC2,0x00,0xC4,0x7F,0xE2,0x30,0x04,0x00,0x02,0x00,
  34.           0x04,0x00,0x02,0x0F,0x0E,0x00,0x07,0x00,0xCA,0x7F,0xE5,0x30,
  35.           0x0A,0x00,0x05,0x00,0x0A,0x00,0x05,0x0F,0x04,0x00,0x02,0x00,
  36.           0x04,0x00,0x02,0x00,0x04,0x00,0x02,0x00,0xC4,0x7F,0xE2,0x3F,
  37.           0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  38.           0xE0,0xFF,0xF0,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  39.           0x00,0x00,0x00,0x00,0xF1,0xFF,0xF8,0xFF,0x00,0x00};
  40.  
  41.   initgraph(&driver, &mode, "");
  42.   setfillstyle(SOLID_FILL,BLUE);
  43.   bar(0,0,getmaxx(),getmaxy());
  44.   putimage(0,0,Rcar,COPY_PUT);
  45.   getch();
  46.   closegraph();
  47. }
  48.